package struts.actions;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import models.Choose;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.MappingDispatchAction;

import biz.decidePaper.DecidePaperBiz;
import biz.decidePaper.DecidePaperBizImpl;

public class DecidePaperAction extends MappingDispatchAction {
	private DecidePaperBiz dcdPaprBiz=new DecidePaperBizImpl();
	public ActionForward getAllChooses(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		List<Choose> chooses=(List<Choose>) dcdPaprBiz.getAllChooses();
		request.setAttribute("chooses", chooses);
	
		return mapping.findForward("getChooses");
	}
}
